<div class="products">
    <div class="controls">
        <span>
            <?= $this->translate("Total products"); ?>:
            <?= $this->productsCount; ?>
        </span>
        <?= $this->formCatalog ?>
    </div>
    <table>
        <? foreach ($this->products as $product): ?>
            <tr>
                <td>
                    <img src="<?= $product->thumb_pic_url ?>"/>
                </td>
                <td>
                    <a href="/<?= $this->language ?>/product/<?= $product->id ?>">
                        <?= $this->escape($product->manufacturer_name) ?>
                        <?= $this->escape($product->name) ?>
                        (<?= $this->escape($product->mpn) ?>)
                    </a>
                    <div class="description"><?= $this->escape($product->long_summary_description) ?></div>
                    <? if ($product->price): ?>
                        <span class="price"><?= $product->price ?>&nbsp;<?= $this->translate('grn') ?></span>
                        <? if ($this->shopMode): ?>
                            <form class="buy" method="post" action="/<?= $this->language ?>/cart">
                                <input type="hidden" name="product" value="<?= $product->id ?>"/>
                                <input type="submit" value="<?= $this->translate("Buy") ?>"/>
                            </form>
                        <? endif ?>
                    <? endif ?>
                </td>
            </tr>
        <? endforeach; ?>
    </table>
    <?= $this->productPagination(); ?>
</div>